<template>
    <div id="message" v-show="show">
        <div>{{msg}}</div>
    </div>
</template>

<script>
export default {
  name: '',
  props: {
    msg: String,
    show: Boolean
  }
 }
</script>

<style scoped lang="scss">
    #message {
        width: 100%;
        height: 100%;
        background-color: rgba($color: #000000, $alpha: 0.4);
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        div {
            background-color: rgba($color: #000000, $alpha: 0.8);
            padding: 6px 20px;
            border-radius: 6px;
            color: #fff;
        }
    }
</style>